package cn.tedu.qxhouserent.house.mapper;

import cn.tedu.qxhouserent.house.pojo.entity.Section;
import cn.tedu.qxhouserent.house.pojo.vo.SectionListItemVO;
import cn.tedu.qxhouserent.house.pojo.vo.SectionStandardVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface SectionMapper extends BaseMapper<Section> {

    SectionStandardVO getStandardById(Long id);

    List<SectionListItemVO> list();

    int countByPrentId(Long prentId);

    List<SectionListItemVO> listByParentId(Long parentId);
}
